﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace TowerDef_s_enseLibrary.gui
{
    public class Background
    {
        #region variables

        public List<Texture2D> TileTextures = new List<Texture2D>();

        #endregion variables

        #region functions

        /// <summary>
        /// Add the background Texture
        /// </summary>
        /// <param name="texture">The background Texture</param>
        public void AddTexture(Texture2D texture)
        {
            TileTextures.Add(texture);
        }

        /// <summary>
        /// Draws the background textures
        /// </summary>
        /// <param name="batch">A group of sprite settings</param>
        public void Draw(SpriteBatch batch)
        {
            foreach (Texture2D texture in TileTextures)
            {
                batch.Draw(texture, new Rectangle(0, 0, 800, 640), Color.White);
            }
        }

        #endregion functions

        #region events



        #endregion events
    }
}
